﻿//Create By Leven
//Copyright 2008 LevenStudio
//http://leven.com.cn/
//For LevenBlog2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LevenBlog.Core.Entities
{
    /// <summary>
    ///表lb_config
    /// </summary>
    [Serializable]
    [DataContract(Name = "config")]
    [Table("lb_config", Info = "")]
    public class lb_config : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("title", DataType.VarChar, Length = 510, CanNull = false)]
        public string title { get; set; }

        [DataMember]
        [Column("intro", DataType.VarChar, Length = 1000)]
        public string intro { get; set; }

        [DataMember]
        [Column("url", DataType.VarChar, Length = 510)]
        public string url { get; set; }

        [DataMember]
        [Column("logo", DataType.VarChar, Length = 510)]
        public string logo { get; set; }

        [DataMember]
        [Column("master", DataType.VarChar, Length = 100)]
        public string master { get; set; }

        [DataMember]
        [Column("mail", DataType.VarChar, Length = 100)]
        public string mail { get; set; }

        [DataMember]
        [Column("copyright", DataType.VarChar, Length = 2000)]
        public string copyright { get; set; }

        [DataMember]
        [Column("tcp", DataType.VarChar, Length = 100)]
        public string tcp { get; set; }

        [DataMember]
        [Column("blogpage", DataType.Int32, Length = 4, CanNull = false)]
        public int blogpage { get; set; }

        [DataMember]
        [Column("commentpage", DataType.Int32, Length = 4, CanNull = false)]
        public int commentpage { get; set; }

        [DataMember]
        [Column("badip", DataType.VarChar, Length = 2000)]
        public string badip { get; set; }

        [DataMember]
        [Column("baduser", DataType.VarChar, Length = 2000)]
        public string baduser { get; set; }

        [DataMember]
        [Column("badchars", DataType.VarChar, Length = 2000)]
        public string badchars { get; set; }

        [DataMember]
        [Column("buildtime", DataType.DateTime, CanNull = false)]
        public DateTime buildtime { get; set; }

        [DataMember]
        [Column("issmtp", DataType.Bit, CanNull = false)]
        public bool issmtp { get; set; }

        [DataMember]
        [Column("smtpsender", DataType.VarChar, Length = 255)]
        public string smtpsender { get; set; }

        [DataMember]
        [Column("smtpserver", DataType.VarChar, Length = 100)]
        public string smtpserver { get; set; }

        [DataMember]
        [Column("smtpuser", DataType.VarChar, Length = 100)]
        public string smtpuser { get; set; }

        [DataMember]
        [Column("smtppassword", DataType.VarChar, Length = 100)]
        public string smtppassword { get; set; }

        [DataMember]
        [Column("iswater", DataType.Bit, CanNull = false)]
        public bool iswater { get; set; }

        [DataMember]
        [Column("watertype", DataType.Int16, Length = 1, CanNull = false)]
        public Int16 watertype { get; set; }

        [DataMember]
        [Column("waterstring", DataType.VarChar, Length = 510)]
        public string waterstring { get; set; }

        [DataMember]
        [Column("waterfont", DataType.VarChar, Length = 40)]
        public string waterfont { get; set; }

        [DataMember]
        [Column("watersize", DataType.Int32, Length = 4)]
        public int watersize { get; set; }

        [DataMember]
        [Column("waterimage", DataType.VarChar, Length = 510)]
        public string waterimage { get; set; }

        [DataMember]
        [Column("waterpos", DataType.VarChar, Length = 40, CanNull = false)]
        public string waterpos { get; set; }

        [DataMember]
        [Column("wateralpha", DataType.Int32, Length = 4)]
        public int wateralpha { get; set; }

        [DataMember]
        [Column("isupload", DataType.Bit, CanNull = false)]
        public bool isupload { get; set; }

        [DataMember]
        [Column("uploadsize", DataType.Int32, Length = 4, CanNull = false)]
        public int uploadsize { get; set; }

        [DataMember]
        [Column("uploadfiles", DataType.VarChar, Length = 2000, CanNull = false)]
        public string uploadfiles { get; set; }

        [DataMember]
        [Column("uploadpath", DataType.VarChar, Length = 510, CanNull = false)]
        public string uploadpath { get; set; }

        [DataMember]
        [Column("ischange", DataType.Bit, CanNull = false)]
        public bool ischange { get; set; }

        [DataMember]
        [Column("skinname", DataType.VarChar, Length = 100, CanNull = false)]
        public string skinname { get; set; }

        [DataMember]
        [Column("skinpath", DataType.VarChar, Length = 510, CanNull = false)]
        public string skinpath { get; set; }

        [DataMember]
        [Column("skinurl", DataType.VarChar, Length = 510, CanNull = false)]
        public string skinurl { get; set; }

        [DataMember]
        [Column("skinauthor", DataType.VarChar, Length = 100, CanNull = false)]
        public string skinauthor { get; set; }

        [DataMember]
        [Column("posttime", DataType.Int32, Length = 4, CanNull = false)]
        public int posttime { get; set; }

        [DataMember]
        [Column("isreg", DataType.Bit, CanNull = false)]
        public bool isreg { get; set; }

        [DataMember]
        [Column("istrack", DataType.Bit, CanNull = false)]
        public bool istrack { get; set; }

        [DataMember]
        [Column("iscomment", DataType.Bit, CanNull = false)]
        public bool iscomment { get; set; }

        [DataMember]
        [Column("isopen", DataType.Bit, CanNull = false)]
        public bool isopen { get; set; }

    }
}

